//调用接口配置文件
import { request } from 'config/request'
// 定义接口
export async function getCommunityList(params) {
    return request({
        url: 'admin/oldcommunity/queryList',
        method: 'POST',
        data: params
    });
};
export async function getCommunity(param) {
    return request({
        url: 'admin/oldcommunity/detail/' + param.id,
        method: 'GET',
        headers:{
            "Content-type":"application/json",
        }
    });
};
export async function delCommunity(params) {
    let id = params.id
    return request({
        url: 'admin/oldcommunity/delete/' + id,
        method: 'GET',
        headers:{
            "Content-type":"application/json",
        }
    });
};
export async function saveCommunityOrUpdate(params) {
    return request({
        url: 'admin/oldcommunity/saveOrUpdate',
        method: 'POST',
        data: params
    });
};
